<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of Login
 *
 * @author Kam
 */
class Application_Form_User_ContactData extends My_Form {

    public function init() {
        $this->setTitle($this->translate('XXX_CONTACT_DATA_FORM_TITLE'));
        $this->showLabels(true);

        $name = new Zend_Form_Element_Text('contact_name');
        $name->setLabel(_('XXX_CONTACT_DATA_FORM_CONTACT_NAME_LABEL'));
        $name->setAttrib('placeholder', $this->_('XXX_CONTACT_DATA_FORM_CONTACT_NAME_LABEL'));
        $this->addElement($name);

        $email = new Zend_Form_Element_Text('contact_email');
        $email->setLabel(_('XXX_CONTACT_DATA_FORM_CONTACT_EMAIL_LABEL'));
        $email->setAttrib('placeholder', $this->_('XXX_CONTACT_DATA_FORM_CONTACT_EMAIL_LABEL'));
        $email->addValidator('EmailAddress');
        $this->addElement($email);

        $email = new Zend_Form_Element_Checkbox('contact_email_visible_flag');
        $email->setLabel(_('XXX_CONTACT_DATA_FORM_CONTACT_EMAIL_VISIBLE_FLAG_LABEL'));
        $email->setAttrib('placeholder', $this->_('XXX_CONTACT_DATA_FORM_CONTACT_EMAIL_VISIBLE_FLAG_LABEL'));
        $this->addElement($email);

        $phone = new Zend_Form_Element_Text('contact_phone');
        $phone->setLabel(_('XXX_CONTACT_DATA_FORM_CONTACT_PHONE_LABEL'));
        $phone->setAttrib('placeholder', $this->_('XXX_CONTACT_DATA_FORM_CONTACT_PHONE_LABEL'));
        $this->addElement($phone);
        
        $skype = new Zend_Form_Element_Text('contact_skype');
        $skype->setLabel(_('XXX_CONTACT_DATA_FORM_CONTACT_SKYPE_LABEL'));
        $skype->setAttrib('placeholder', $this->_('XXX_CONTACT_DATA_FORM_CONTACT_SKYPE_LABEL'));
        $this->addElement($skype);
        
        $gg = new Zend_Form_Element_Text('contact_gg');
        $gg->setLabel(_('XXX_CONTACT_DATA_FORM_CONTACT_GG_LABEL'));
        $gg->setAttrib('placeholder', $this->_('XXX_CONTACT_DATA_FORM_CONTACT_GG_LABEL'));
        $this->addElement($gg);
        
        $btn = $this->addSubmitElement()->setLabel(_('XXX_CONTACT_DATA_FORM_BUTTON'));
        $class = $btn->getAttrib('class');
        $btn->setAttrib('class', $class . ' span12');
    }

}

